home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / gg243730.zip / SWAPSIZE.MAK < prev    next >
Text File  |  1993-03-06  |  2KB  |  92 lines

  1. #===================================================================
  2. #
  3. #   Hello Make file
  4. #
  5. #===================================================================
  6.  
  7. #===================================================================
  8. #
  9. #   Sample application makefile,common definitions for the IBM C
  10. #   compiler environment
  11. #===================================================================
  12. .SUFFIXES:
  13. .SUFFIXES: .rc .res .obj .lst .c .asm .hlp .itl .ipf
  14. #===================================================================
  15. # Default compilation macros for sample programs
  16. #
  17. # Compile switchs  that are enabled
  18. # /c      compile don't link
  19. # /Gm+    use the multi-threaded libraries
  20. # /ss     allow  "//" for comment lines
  21. # /Ms     use the system calling convention and not optilink as the default
  22. # /Gd-    Disable optimization
  23. # /Se     allow cset  extensions
  24. #
  25. #Note: /D__MIG_LIB__ will be coming out after LA and code should be changed
  26. #      accordingly.
  27. #
  28.  
  29. CC         = icc /c /Gd- /Se /Re /ss /Ms /Gm+ /D__MIG_LIB__ /Ti
  30.  
  31.  
  32. AFLAGS  = /Mx -t -z
  33. ASM     = ml /c /Zm
  34. LFLAGS   = /NOE /NOD /ALIGN:16 /EXEPACK /M /De
  35. LINK    = LINK386  $(LFLAGS)
  36. LIBS    = DDE4MBS + OS2386
  37. STLIBS  = DDE4SBS + OS2386
  38. MTLIBS  = DDE4MBS + DDE4MBM  + os2386
  39. DLLLIBS = DDE4NBS + os2386
  40. VLIBS   = DDE4SBS + vdh + os2386
  41.  
  42. .c.lst:
  43.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  44.  
  45. .c.obj:
  46.     $(CC) -Fo$*.obj $*.c
  47.  
  48. .asm.obj:
  49.     $(ASM)   $*.asm
  50.  
  51. .ipf.hlp:
  52.         ipfc $*.ipf /W3
  53.  
  54. .itl.hlp:
  55.         cc  -P $*.itl
  56.         ipfc $*.i
  57.         del $*.i
  58.  
  59. .rc.res:
  60.         rc -r -p -x $*.rc
  61.  
  62. CC         = icc /c /Ge /Gd- /Se /Re /ss /Gm+ /D__MIG_LIB__ /Ti
  63.  
  64. HEADERS = swapsize.h
  65.  
  66. #-------------------------------------------------------------------
  67. #   A list of all of the object files
  68. #-------------------------------------------------------------------
  69. ALL_OBJ1 = swapsize.obj
  70.  
  71.  
  72. all: swapsize.exe
  73.  
  74.  
  75. swapsize.l: swapsize.mak
  76.     echo $(ALL_OBJ1)            > swapsize.l
  77.     echo swapsize.exe           >> swapsize.l
  78.     echo swapsize.map           >> swapsize.l
  79.     echo $(LIBS)                >> swapsize.l
  80.     echo swapsize.def           >> swapsize.l
  81.  
  82.  
  83.  
  84.  
  85. swapsize.res: swapsize.rc swapsize.ico swapsize.h
  86.  
  87. swapsize.obj: swapsize.c $(HEADERS)
  88.  
  89. swapsize.exe: $(ALL_OBJ1)  swapsize.def swapsize.l swapsize.res
  90.     $(LINK) @swapsize.l
  91.     rc swapsize.res swapsize.exe
  92.